package com.atguigu.anno;

import com.atguigu.exceptionHandler.GlobalExceptionHandler;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

//放在哪个位置
@Target(value = ElementType.TYPE)
//作用时间
@Retention(value = RetentionPolicy.RUNTIME)
//扫描
@Import(GlobalExceptionHandler.class)
public @interface EnableGlobalExceptionHandler {
}
